(function($){$().ready(function() {
$("#editAlbumForm").validate({
rules:{
submitToken:{},
albumName:{required:true,maxlength:20},
place:{maxlength:30},
description:{maxlength:200},
authority:{required:true,number:true}
},
messages:{
submitToken:{},
albumName:{required:'相册名称不能为空',maxlength:'相册名称不能多于20个字'},
place:{maxlength:'地点信息不能多于30个字'},
description:{maxlength:'描述信息不能多于200个字'},
authority:{required:'相册可见信息必须选择',number:'相册可见信息不合规范'}
}
});
});
})(jQuery);